package yt.kpool.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;
import java.util.List;
import yt.kpool.R;
import yt.kpool.bean.RecommendCustomersBean;


public class RCAdapter extends ViewHolderRecyclerAdapter<RecommendCustomersBean.DataBean.ProportionsDetailsBean> {




    public RCAdapter(Context context, List<RecommendCustomersBean.DataBean.ProportionsDetailsBean> listData) {
        super(context, listData);

    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.adapter_rc,null);
    }


    @Override
    public void bindViewDatas(ViewHolder holder, RecommendCustomersBean.DataBean.ProportionsDetailsBean dataBean, int position) {
        holder.setText(R.id.tv_1,dataBean.getCode().toUpperCase());
        holder.setText(R.id.tv_2, dataBean.getAmountRatio()*100+"%");
        holder.setText(R.id.tv_3,dataBean.getAmountAddRatio()*100+"%");

    }
}
